package com.leyou.item.api;

import com.leyou.item.entity.Brand;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author linzx
 * @date 2020/3/26
 */
public interface BrandApi {

    /**
     * 根据id查询品牌
     * @param cid
     * @return
     */
    @GetMapping("brand/bid/{bid}")
    public Brand findBrandById(@PathVariable("bid") Long cid);

    /**
     * 根据ids查询品牌
     * @param ids
     * @return
     */
    @GetMapping("brand/bid/list")
    List<Brand> findBrandByIds(@RequestParam("ids") List<Long> ids);
}
